package com.example.web.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.example.web.entity.Group;
import com.example.web.entity.User;

import lombok.extern.slf4j.Slf4j;

@Component
@Slf4j
public class GroupService {

	public Group getGroup() {
		User u1 = new User();
		u1.setId(1L);
		u1.setName("anny");
		u1.setSex("girl");
		log.info("user:{}",u1);
		Group g = new Group(1L, "sm", u1);

		return g;
	}

	List<Group> getGroups() {
		return null;
	}
}
